package com.jishaokang.dao;

import com.jishaokang.model.dto.Learn;
import com.jishaokang.model.vo.LearnVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by NANA_Final on 2019/6/21.
 */
@Repository
public interface LearnDAO {

    LearnVO selectLearnByCourseIdAndUserId(Learn learn);

    void insert(Learn learn);

    int selectTotalByUserId(Learn learn);

    List<LearnVO> selectByUserId(Learn learn);

    int selectTotalComment(Learn learn);

    List<LearnVO> selectComment(Learn learn);

    void updateCourseComment(Learn learn);

    void updateHistory(Learn learn);

    int selectTotal(Learn learn);

    List<LearnVO> select(Learn learn);

    List<LearnVO> selectByCostDesc(Learn learn);

    int selectTotalByUsername(Learn learn);

    List<LearnVO> selectByUsername(Learn learn);

}